Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

models: Add a seperate models-staging.yml to allow for separate versioning. #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gorzell
Copy link
Contributor

@gorzell gorzell commented Jun 3, 2020

It has been challenging to ensure that changes get deployed correctly in
staging because it requires a number of extra steps around tagging,
publishing and updating the models.yml file. The majority of this pain
comes from the fact that we were sharing the models.yml file between
production and other environments and therefore couldn't relax our
versioning between environments.

This change copies the existing models.yml file to
models-staging.yml and changes all of the model/connector image URLs
to point at the master tag rather than a more specific version tag. It
also adds a switch where this file is loaded by the app to load the
correct version based on the environment. The downside to this approach
is that there will be extra effort and attention needed to keep the
other data in these two files in sync when it changes.

versioning.

It has been challening to ensure that changes get deployed correctly in
staging because it requires a number of extra steps around tagging,
publishing and updating the `models.yml` file. The majority of this pain
comes from the fact that we were sharing the `models.yml` file between
production and other environments and therefore couldn't relax our
versioning between envrionments.

This change copies the existing `models.yml` file to
`models-staging.yml` and changes all of the model/connector image URLs
to point at the `master` tag rather than a more specific version tag. It
also adds a switch where this file is loaded by the app to load the
correct version based on the environment. The downside to this approach
is that there will be extra effort and attention needed to keep the
other data in these two files in sync when it changes.
@vercel
Copy link

vercel bot commented Jun 3, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

@adityasharad
Copy link
Contributor

For some reason we do not have recent master builds of all connector packages (possibly because the merges of PRs do not match the filter for which file paths were modified), so we need to do that before this PR will work.

@aeisenberg
Copy link
Contributor

We can manually run the deploys for each of these models. I can take care of that tomorrow.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants